package com.kgc.scd.service;

import com.kgc.scd.bean.Order;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Map;

/**
 * Created On : 2022/6/8.
 * <p>
 * Author     : 98730
 * <p>
 * Description: 远程调用订单中心接口
 */
@FeignClient(name = "blmall-server-jzp-8102")
public interface SeckillTradeOrderFeignService {

    /**
     * @author : 98730
     * @date   : 2022/6/8
     * @param  : [java.lang.String, java.lang.String, java.lang.Integer]
     * @return : java.lang.String
     * @description : 远程调用订单中心接口，使用feign方式
     */
    @PostMapping("/seckillOrder")
    Order invokeCreateTradeOrderFeign(@RequestParam("userId") String userId,
                                      @RequestParam("seckillId") String seckillId);
}
